package com.ruoyi.socket.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/***
 *  @description
 *  @author zhao
 *  @date: 2020/6/12
 *  @version: v1.0
 */
public class MyDateUtils {

    // 解析ecg心电呼吸机的时间格式
    public static LocalDateTime parseString(String str){
        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
        LocalDateTime ldt = LocalDateTime.parse(str,df);
        return ldt;

    }
}
